package com.bysj.lms.service;

import com.bysj.lms.pojo.dto.CourseDto;
import com.bysj.lms.pojo.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaojiakai
 * @since 2022-04-16
 */
public interface ICourseService extends IService<Course> {
    //批量添加
    boolean adds(List<Course> list);
    
    //按班级学期查询课程
    List<Course> list(Integer classId,String term);
    
    //导出课程表
    void export(HttpServletResponse response, String filename,Integer classId,String term) throws IOException;
    
    List<List<String>> head();

    List<CourseDto> getSC(String tid, String term,String tname);
}
